<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: beige;
        }
        div {
            font-size: 80px;
            position: absolute;
            left: 100px;
            top:50px;
        }
        </style>
</head>
<body>
        <div>🐝</div>
<script>
        document.onmousemove = function(evt) {
             var e = evt || window.event
            var divObj = document.querySelector('div')
            divObj.style.left = e.pageX + 'px'
            divObj.style.top = e.pageY + 'px'
        }
</script>
</body>
</html>